<?php
require_once("lib/util.php");
require_once("lib/db.php");
session_start();
connect();
$users= get_all_users();
render ("view_users", array("users" =>$users));
close();
function get_all_users(){
$user_query= "SELECT * from users  ORDER by user_id DESC";
$users= query($user_query, array());
return $users;
}
